package com.margo.project.web.filter;

import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class MargoFilterConfig {
	@Bean
    public FilterRegistrationBean<MargoRegistrationFilter> filterRegistrationBean(){
        FilterRegistrationBean<MargoRegistrationFilter> bean = new FilterRegistrationBean<MargoRegistrationFilter>();
        bean.setFilter(new MargoRegistrationFilter());
        bean.addUrlPatterns("/*");
        return bean;
    }
}
